﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

namespace happroject
{
    public partial class listaDeTareas : System.Web.UI.Page
    {
        ArrayList miListaDeTareas = new ArrayList();
        
        protected void Page_Load(object sender, EventArgs e)
        {                    

        }

        public bool existeSesion()
        {
            return (Session["listaDeTareas"] == null);       
        }

        private void insertarTarea(Tarea nuevaTarea)
        {
            miListaDeTareas.Add(nuevaTarea);
            guardarListaDeTareas(miListaDeTareas);          
        }

        private void guardarListaDeTareas(ArrayList ListaDeTareas)
        {
            Session["listaDeTareas"] = ListaDeTareas;
        }

        protected void imgCerrarFitness_Click(object sender, ImageClickEventArgs e)
        {
            Response.Write("<script language='javascript'> { window.close();}</script>");
        }



    }
}